package cn.wuyi.common.rest;


public enum ReturnCode {
	
	/**成功:101*/
	SUCCESS("101","成功"),
	
	/**返回值为空:102*/
	RETURN_NULL("102","返回值为空"),
	
	/**参数错误:201*/
	PARAM_ERROR("201","参数错误"),
	
	/**校验错误:202*/
	CHECK_ERROR("202","校验错误"),
	
	/**失败:301*/
	ERROR("301","失败"),
	
	/**服务器端连接失败*/
	SERVER_ERROR("401","服务器端连接失败"),
	
	/**未授权:407*/
	AUTH_ERROR("407","未授权"),
	
	/**服务繁忙:502*/
	SERVER_BUSY("502","服务繁忙"),
	
	/**未登录:999*/
	LOGIN_ERROR("999","未登录");

	/**
	 * 状态码
	 */
	private String code;
	
	/**
	 * 提示语
	 */
	private String msg;
	
	private ReturnCode(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

}
